package com.youi.shop.pojo.vo.orderItem;

import com.youi.shop.pojo.entity.Product;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @version 1.0
 * @Author: xxf
 * @CreateDate: 2020/11/12 14:44
 */
@Data
public class OrderItemVO {

    @ApiModelProperty(value = "订单项主键")
    private Long orderItemId;

    @ApiModelProperty(value = "订单主键")
    private Long orderId;

    @ApiModelProperty(value = "商品主键")
    private Long productId;

    @ApiModelProperty(value = "购买数量")
    private Integer quantity;

    @ApiModelProperty(value = "订单项小计")
    private BigDecimal count;

    private Product product;
}
